Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct item
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
entity recipe
Link copied to clipboard
Link copied to clipboard
struct recipe_dto
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val FT3: text = "ft3"

Functions

Link copied to clipboard
function _add_input_line_to_count(assets_map: map<item, integer>, inputs_line: list<recipe_input_dto>, recipe_batch_size: integer, chosen_customizations: list<(tag: text, value: text)>, player: player)
Link copied to clipboard
function _aggregate_output_from_recipe(assets_to_reward: map<item, integer>, recipe_dto: recipe_dto, recipe_amount: integer)
Link copied to clipboard
function _check_ownership_and_queue(account_id: byte_array, auth_descriptor_id: byte_array, crafting_station: crafting_station): set<queued_recipe>
Link copied to clipboard
function _choose_input_given_customization(chosen_customizations: list<(tag: text, value: text)>, recipe_input_dto: recipe_input_dto): item?
Link copied to clipboard
function _claim_output_with_time(crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array, timestamp: integer)
Link copied to clipboard
function _claim_recipe_dtos_for_player(player: player, queued_recipe_dtos: list<queued_recipe_dto>, store_last_created_items: boolean)
Link copied to clipboard
function _claim_recipes_for_player(player: player, recipes_to_claim: list<queued_recipe>, store_last_created_items: boolean)
Link copied to clipboard
function _figure_output(recipe_dto: recipe_dto, batching_amount: integer, chosen_customizations: list<(tag: text, value: text)>): (item, integer)
Link copied to clipboard
function _get_recipe_dtos(item_entities: list<recipe>): map<text, recipe_dto>
Link copied to clipboard
function _names_to_items(names: list<text>, types_map: map<text, item>): list<item>
Link copied to clipboard
function _process_original_reward(queued_recipe_dto: queued_recipe_dto, player: player)
Link copied to clipboard
function _query_recipes_by_names(recipe_names: set<text>): list<recipe>
Link copied to clipboard
Link copied to clipboard
function _types_for_names(names: set<text>): map<text, item>
Link copied to clipboard
function _validate_item_names(items_names: set<text>): map<text, item>
Link copied to clipboard
@extend(check_original_removable) function check_original_movable(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
function choose_customization(input: recipe_input_dto, chosen_customizations: list<(tag: text, value: text)>): (tag: text, value: text)?
Link copied to clipboard
@extend(on_placing) function on_placing(owner_id: byte_array, original_id: byte_array, griddable_id: integer, current_location: location?, new_location: location)
Link copied to clipboard
function required_consumed(consumed: boolean, input: text, chosen_customization: text)
Link copied to clipboard
function validate_customization(input: recipe_input_dto, chosen_customizations: list<(tag: text, value: text)>): (tag: text, value: text)?

Queries

Link copied to clipboard
@mount("recipes.get_all_recipes") query get_all_recipes(): list<recipe_dto>
Link copied to clipboard
@mount("recipes.get_recently_crafted_item") query get_recently_crafted_item(account_id: byte_array): list<recipe_output_dto>
Link copied to clipboard
@mount("recipes.get_recipe_configs") query get_recipe_configs(): (enabled: boolean,)
Link copied to clipboard
@mount("recipes.get_stations") query get_stations(account_id: byte_array): list<crafting_station_dto>

Operations

Link copied to clipboard
@mount("recipes.claim_bulk") operation claim_bulk()
Link copied to clipboard
@mount("recipes.claim_output") operation claim_output(crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("recipes.craft_recipe") operation craft_recipe(recipe_name: text, recipe_amount: integer, chosen_customizations: list<(tag: text, value: text)>, crafting_station: crafting_station, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("recipes.delete_recipe") operation delete_recipe(recipe_name: text)
Link copied to clipboard
@mount("recipes.register_blueprint") operation register_blueprint(name: text)
Link copied to clipboard
@mount("recipes.register_crafting_station") operation register_crafting_station(name: text, relative_locations: list<location>, public: boolean)
Link copied to clipboard
@mount("recipes.register_ticket") operation register_ticket(name: text)
Link copied to clipboard
@mount("recipes.set_global_recipe_parameters") operation set_global_recipe_parameters(enabled: boolean)
Link copied to clipboard
@mount("recipes.upsert_recipe") operation upsert_recipe(recipe_name: text, crafting_time: integer, crafting_station: text, fee: integer, input: list<recipe_implicit_input_dto>, output: list<recipe_implicit_output_dto>)